<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SpringMVC标签库——form</title>
</head>
<body>
	<form:form action="regist" method="post" commandName="user">
		<table>
			<tr>
				<td>姓名：</td>
				<td><form:input path="username" /></td>
				
			</tr>
			<tr>
				<td>密码：</td>
				<td><form:password path="password" /></td>
				
			</tr>
			<tr>
				<td>年龄：</td>
				<td><form:input path="age" /></td>
				
			</tr>
			<tr>
				<td>隐藏域：</td>
				<td><form:hidden path="age" /></td>
				
			</tr>
			<tr>
				
				<td><input type="submit" value="提交"></td>
				
			</tr>
			<input id="age2" name="age2" type="hidden" value="100">
		</table>
	</form:form>
	<!-- <span>隐藏域input：</span><input id="username2" name="username" type="hidden" value="这是隐藏域"> -->
</body>
</html>